package IO第二天;

import java.util.Properties;
import java.util.ResourceBundle;

public class 第二种方式读取properties文件 {
    public static void main(String[] args) throws Exception{
        ResourceBundle bundle = ResourceBundle.getBundle("person");
        System.out.println(bundle.getString("name"));
        System.out.println(bundle.getString("age"));
    }
}
